//
//  NCChatDataSource.h
//  AGEmojiKeyboard
//
//  Created by LINAICAI on 2018/4/16.
//

#import <Foundation/Foundation.h>
#import "NCChatMessage.h"
#import "NCChatUser.h"
@protocol NCChatDataSource <NSObject>
@required
///获取所有聊天消息
- (NSMutableArray<NCChatMessage*> *)messages;
///添加聊天消息
- (void)addMessages:(NCChatMessage *)message complete:(void(^)(void))complete;
///加载更多聊天记录
- (void)loadMoreMessages:(void(^)(NSUInteger))complete;
///预加载聊天记录
- (void)proLoadMessages:(void(^)(void))complete;
///删除某条信息
- (void)delectMessage:(NCChatMessage *)message complete:(void(^)(void))complete;
@end
